package org.msfj.common.util;

import org.msfj.common.submail.SubMailMessages;

/**
 * 发送短信的任务，可以用来存储在 mq 中等待消费
 */
public class SubMailSmsTask {


    public SubMailSmsTask() {
    }

    private String projectId;
    private SubMailMessages msgs;
    /**
     * 过期时间，如果不为空超过这个时间还没有发出，则不废除此任务
     */
    private Long expiredTimestamp; //请求发送的时间戳，如果超过这个时间戳还没有发送就不发送了

    public void setExpiredTimestamp(Long expiredTimestamp) {
        this.expiredTimestamp = expiredTimestamp;
    }

    public Long getExpiredTimestamp() {
        return expiredTimestamp;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setMsgs(SubMailMessages msgs) {
        this.msgs = msgs;
    }

    public SubMailMessages getMsgs() {
        return msgs;
    }

    public SubMailSmsTask(String projectId, SubMailMessages msgs) {
        this.projectId = projectId;
        this.msgs = msgs;
    }
}
